<?php
	include('header.php');
	
	$advert = AdvertDB::getAdvertByUserId($user->getId(), true);
	$adverts = $advert->getCorrespondences();
	if(!$advert->isOffer()){
		$requests = $advert->getRequestCorrespondences();
	}
	include(TPL_DIR . 'correspondances.html');
	
	include('footer.php');

?>